pacemaker diagnostic algorithm